


package com.li.service;

import com.li.mapper.AllsortsMapper;
import com.li.pojo.Allsorts;
import com.li.pojo.Course1;
import com.li.pojo.Course2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;

@Service
public class AllsortsService {



    @Autowired
    AllsortsMapper allsortsMapper;


    public void updatebi(Allsorts allsorts){ allsortsMapper.updatebi(allsorts);}

    public void insert(Allsorts allsorts){
        allsortsMapper.insertAllsorts(allsorts);
    }
    public List<Allsorts> list(){
        return  allsortsMapper.listAllsorts();
    }
    public  void updateAllsorts(Allsorts allsorts){  allsortsMapper.updateAllsorts(allsorts);}
}


